<%-- 
    Document   : header
    Created on : Apr 2, 2012, 8:25:44 PM
    Author     : Brian
--%>

<%@page contentType="text/html" pageEncoding="EUC-KR"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
        <title>XQL Trading System</title>
        <link rel="stylesheet" href="css/stockchart.css" type="text/css"/>
        <link rel="stylesheet" type="text/css" href="css/main.css" />
        <link rel="stylesheet" href="css/style.css" type="text/css" media="screen, projection"/>
        <link rel="stylesheet" type="text/css" href="css/dialog.css" />
        <link rel="stylesheet" type="text/css" href="css/stickytooltip.css" />
        <link rel="stylesheet" type="text/css" href="css/anytime.css" />
        <link rel="stylesheet" href="css/table.css" type="text/css" />
        <script type='text/javascript' src='js/jquery.min.js'></script>
        <script type="text/javascript" src='js/manager.js'></script>
        <script type="text/javascript" src="js/scripts.js"></script>
        <script type="text/javascript" src="js/anytime.js"></script>
        <script type="text/javascript" src="js/stickytooltip.js"></script>
        
    </head>
    
    <body>
        <form id="form2" name="form2" method="post" action="login.html" style="width:960px">
            <table>
                <tr>
                    <td>
                        <div style="float:left; margin-left: 30px"><a href="index.jsp"><img src="images/logo1.jpg"/></a></div>
                        <div style="float:left; margin-left: 120px"><a href="index.jsp"><img src="images/logo2.jpg"/></a></div>
                        <%
                            JavaBeans.User user = (JavaBeans.User) session.getAttribute("user");
                            if (user == null) 
                            {
                        %>
                        <div style="float:left; margin-top: 25px; margin-left: 30px">
                            <span style="margin-left: 25px;">ID: </span><input name="userID" type="text" class="textBox" id="userid" maxlength="15" style="width:105px" />
                            Password: <input name="password" style="width:105px" type="password" class="textBox" id="" maxlength="15" />
                      
                            <input name="login" type="submit" class="button" id="login" value="Log In" onclick="this.form.onsubmit(); return false;this.disabled=true;"/>
                            <center><p style="color: red">${message}</p></center>
                    <% } 
                            else{
                                                   %><span id="welcome">Welcome ${user.lastname}, ${user.firstname}</span></br></br> <a href="logout.jsp" style="margin-left: 295px">Log Out</a></div>
            <%}%></td>
                </tr>
            </table>
        </form>